import { createStore } from 'vuex'

export default createStore({
  state: {
      search:''
  },
  mutations: {
    tosearch(state,val){
        state.search = val
    }
  },
  actions: {
    tosearch (context, val) {
       context.commit('tosearch', val)  
      }
  },
 
})
